home *** CD-ROM | disk | FTP | other *** search
/ Computer Life 1996 January / Computer Life January 1996.iso / vis3 / demos / 3dgame2.vrt / world.script < prev    next >
Encoding:
Text File  |  1994-02-18  |  37.3 KB  |  2,789 lines

  1. ;
  2. ; Script conversion of file 3DGAME2.WLD
  3. ;
  4. Type: WRLD
  5. Title: "\n\n\r"
  6.        "World file 3DGAME2.WLD revision 30\n\r"
  7.        "Saved from VRT version 3.11\n\r"
  8.        "\x1A"
  9. ;
  10. ;-------Object    0-------------------------------------------------------
  11. Chunk: Standard
  12.  Name:     "RootObject"
  13.  Number:   0
  14.  Size:     2147483647 2147483647 2147483647
  15.  Position: 0 0 0
  16.  Type:     65535
  17.  Layer:    0
  18.  DFlags:   E
  19. End_Chunk
  20. Chunk: ViewPoint
  21.  Number:    100
  22.  Subchunk
  23.   Number:  1
  24.   Type:    35
  25.   View:    0
  26.   Point:   0
  27.   Frames:  1
  28.   Position:  0 Frame:   0  Type: StraightMove Pos: 1990372 25630 1997181
  29.   Rotation:  0 Frame:   0 Type: Relative Offset: 5348 167 0 Zoom: 0x2000
  30.  Subchunk
  31.   Number:  2
  32.   Type:    45
  33.   View:    0
  34.   Point:   0
  35.   Frames:  1
  36.   Position:  0 Frame:   0  Type: StraightMove Pos: 2001050 10550 1997800
  37.   Rotation:  0 Frame:   0 Type: Relative Offset: 4555 0 0 Zoom: 0x2000
  38.  Subchunk
  39.   Number:  3
  40.   Type:    45
  41.   View:    15
  42.   Point:   0
  43.   Frames:  1
  44.   Position:  0 Frame:   0  Type: StraightMove Pos: 643 523 392
  45.   Rotation:  0 Frame:   0 Type: Relative Offset: 0 0 0 Zoom: 0x2000
  46.  Subchunk
  47.   Number:  10
  48.   Type:    45
  49.   View:    15
  50.   Point:   0
  51.   Frames:  1
  52.   Position:  0 Frame:   0  Type: StraightMove Pos: -354 523 390
  53.   Rotation:  0 Frame:   0 Type: Relative Offset: 0 16 0 Zoom: 0x0AF9
  54.  Subchunk
  55.   Number:  11
  56.   Type:    45
  57.   View:    15
  58.   Point:   0
  59.   Frames:  1
  60.   Position:  0 Frame:   0  Type: StraightMove Pos: 1642 523 391
  61.   Rotation:  0 Frame:   0 Type: Relative Offset: 0 0 0 Zoom: 0x0AF9
  62. End_Chunk
  63. Chunk: Colours
  64.  Number: 6
  65.  0xFC 0x04 0x01 0xFF 0x00 0x01
  66. End_Chunk
  67. Chunk: LightSource
  68.  Brightness: 1600
  69.  Offset:     -724 1448 -1254
  70.  Rotation:   0x0000 0x0000 0x0000
  71.  BeamWidth:  0
  72.  Dispersion: 100
  73.  Colour:     0xFF 0xFF 0xFF
  74.  BeamEdge:   0
  75.  Flags:      pOo
  76. End_Chunk
  77.  
  78. Children:
  79. ;
  80. ;-------Object    1-------------------------------------------------------
  81. Chunk: Standard
  82.  Name:     "Anchor"
  83.  Number:   1
  84.  Size:     100000 1 100000
  85.  Position: 1950000 0 2000000
  86.  Type:     0
  87.  Layer:    0
  88. End_Chunk
  89. Chunk: Colours
  90.  Number: 6
  91.  0x00 0x00 0x00 0x00 0x00 0x00
  92. End_Chunk
  93. ;
  94. ;-------Object    7-------------------------------------------------------
  95. Chunk: Standard
  96.  Name:     "Room"
  97.  Number:   7
  98.  Size:     40000 30000 80000
  99.  Position: 1970000 0 2000000
  100.  Type:     10
  101.  Layer:    0
  102.  DFlags:   E
  103. End_Chunk
  104. Chunk: Colours
  105.  Number: 131
  106.  0x00 0x2A 0x28 0x26 0x24 0x26 0x2A 0x74 0x74 0x76 0x77 0x76 0x75 0x77 0x2A 0x77
  107.  0x2A 0x77 0x28 0x76 0x28 0x76 0x28 0x75 0x26 0x75 0x26 0x75 0x24 0x74 0x24 0x74
  108.  0x24 0x68 0x69 0x68 0x69 0x68 0x69 0x68 0x69 0x6A 0x6B 0x6C 0x6D 0x6E 0x6F 0x6F
  109.  0x6D 0x6B 0x6A 0x6C 0x6E 0x6F 0x6D 0x6B 0x6A 0x6C 0x6E 0x6F 0x6D 0x6B 0x6A 0x6C
  110.  0x6E 0x00 0x00 0x7F 0x7D 0x7C 0x7A 0x7B 0x7E 0x4A 0x4A 0x4C 0x4D 0x4C 0x4B 0x4D
  111.  0x7D 0x4D 0x7C 0x4D 0x7C 0x4C 0x7B 0x4C 0x7A 0x4B 0x7A 0x4B 0x79 0x4B 0x79 0x4A
  112.  0x78 0x4A 0x78 0x00 0x4D 0x4C 0x4B 0x4A 0x4B 0x4D 0x94 0x94 0x96 0x97 0x96 0x95
  113.  0x97 0x4D 0x97 0x4D 0x97 0x4C 0x96 0x4C 0x96 0x4C 0x95 0x4B 0x95 0x4B 0x95 0x4A
  114.  0x94 0x4A 0x94
  115. End_Chunk
  116.  
  117. Chunk: SoundRef
  118.  Number: 11
  119.  Index: 1 Sound: 3
  120.  Index: 2 Sound: 6
  121.  Index: 3 Sound: 7
  122.  Index: 4 Sound: 8
  123.  Index: 5 Sound: 9
  124.  Index: 6 Sound: 10
  125.  Index: 7 Sound: 11
  126.  Index: 8 Sound: 12
  127.  Index: 9 Sound: 13
  128.  Index: 10 Sound: 4
  129.  Index: 11 Sound: 5
  130. End_Chunk
  131. Chunk: SCL
  132. short  STEREO=1;
  133.  
  134.  
  135.  
  136. resume (2, 2);
  137.  
  138. if (first)
  139.  
  140. {
  141.  
  142.   counter (15)=STEREO;
  143.  
  144.   setvp (3);
  145.  
  146.   sound (10, 64, 100, 0);
  147.  
  148.   wait (50);
  149.  
  150. /*
  151.  
  152.  
  153.  
  154. c(20) holds score
  155.  
  156.  
  157.  
  158. */
  159.  
  160. }
  161.  
  162. if (getwin==1)
  163.  
  164. {
  165.  
  166.   instr (1)=counter (20);
  167.  
  168.   update (1);
  169.  
  170. }
  171.  
  172. else
  173.  
  174. {
  175.  
  176.   instr (2)=counter (20);
  177.  
  178.   update (2);
  179.  
  180.   instr (3)=counter (20);
  181.  
  182.   update (3);
  183.  
  184. }
  185. end
  186. End_Chunk
  187.  
  188. Children:
  189. ;
  190. ;-------Object   20-------------------------------------------------------
  191. Chunk: Standard
  192.  Name:     "step[20]"
  193.  Number:   20
  194.  Size:     10 29999 80000
  195.  Position: 39900 0 0
  196.  Type:     65535
  197.  Layer:    0
  198. End_Chunk
  199. ;
  200. ;-------Object   41-------------------------------------------------------
  201. Chunk: Standard
  202.  Name:     "step[41]"
  203.  Number:   41
  204.  Size:     10000 3000 10000
  205.  Position: 0 17000 60000
  206.  Type:     0
  207.  Layer:    0
  208. End_Chunk
  209. Chunk: Colours
  210.  Number: 6
  211.  0x25 0xE1 0xE0 0xE1 0xBA 0x26
  212. End_Chunk
  213. Chunk: SCL
  214. long   y;
  215.  
  216.  
  217.  
  218. resume (2, 2);
  219.  
  220. if (counter (15)==1)
  221.  
  222. {
  223.  
  224.   if (getwin==1)
  225.  
  226.   {
  227.  
  228.     setwin (2);
  229.  
  230.     setvp (10);
  231.  
  232.     ascale;
  233.  
  234.     y=yscale/2;
  235.  
  236.     write (&yscale)=y;
  237.  
  238.     setwin (3);
  239.  
  240.     setvp (11);
  241.  
  242.     write (&yscale)=y;
  243.  
  244.     setwin (2);
  245.  
  246.   }
  247.  
  248.   else
  249.  
  250.   {
  251.  
  252.     setwin (1);
  253.  
  254.     setvp (3);
  255.  
  256.   }
  257.  
  258.   waitfs (5);
  259.  
  260.   counter (15)=0;
  261.  
  262. }
  263. end
  264. End_Chunk
  265. ;
  266. ;-------Object   49-------------------------------------------------------
  267. Chunk: Standard
  268.  Name:     "section2"
  269.  Number:   49
  270.  Size:     10000 15214 20000
  271.  Position: 17000 13000 60000
  272.  Type:     65535
  273.  Layer:    0
  274.  DFlags:   E
  275. End_Chunk
  276. Chunk: SCL
  277. long   y;
  278.  
  279.  
  280.  
  281. resume (2, 2);
  282.  
  283. if (counter (15)==1)
  284.  
  285. {
  286.  
  287.   if (getwin==1)
  288.  
  289.   {
  290.  
  291.     setwin (2);
  292.  
  293.     setvp (10);
  294.  
  295.     ascale;
  296.  
  297.     y=yscale/2;
  298.  
  299.     write (&yscale)=y;
  300.  
  301.     setwin (3);
  302.  
  303.     setvp (11);
  304.  
  305.     write (&yscale)=y;
  306.  
  307.     setwin (2);
  308.  
  309.   }
  310.  
  311.   else
  312.  
  313.   {
  314.  
  315.     setwin (1);
  316.  
  317.     setvp (3);
  318.  
  319.   }
  320.  
  321.   waitfs (5);
  322.  
  323.   counter (15)=0;
  324.  
  325. }
  326. end
  327. End_Chunk
  328.  
  329. Children:
  330. ;
  331. ;-------Object   42-------------------------------------------------------
  332. Chunk: Standard
  333.  Name:     "step[42]"
  334.  Number:   42
  335.  Size:     10000 3000 10000
  336.  Position: 0 0 0
  337.  Type:     0
  338.  Layer:    0
  339. End_Chunk
  340. Chunk: Colours
  341.  Number: 6
  342.  0xE0 0xE1 0xE0 0xE1 0xBA 0x26
  343. End_Chunk
  344. Chunk: SCL
  345. long   y;
  346.  
  347.  
  348.  
  349. resume (2, 2);
  350.  
  351. if (counter (15)==1)
  352.  
  353. {
  354.  
  355.   if (getwin==1)
  356.  
  357.   {
  358.  
  359.     setwin (2);
  360.  
  361.     setvp (10);
  362.  
  363.     ascale;
  364.  
  365.     y=yscale/2;
  366.  
  367.     write (&yscale)=y;
  368.  
  369.     setwin (3);
  370.  
  371.     setvp (11);
  372.  
  373.     write (&yscale)=y;
  374.  
  375.     setwin (2);
  376.  
  377.   }
  378.  
  379.   else
  380.  
  381.   {
  382.  
  383.     setwin (1);
  384.  
  385.     setvp (3);
  386.  
  387.   }
  388.  
  389.   waitfs (5);
  390.  
  391.   counter (15)=0;
  392.  
  393. }
  394. end
  395. End_Chunk
  396. ;
  397. ;-------Object   47-------------------------------------------------------
  398. Chunk: Standard
  399.  Name:     "step[47]"
  400.  Number:   47
  401.  Size:     4000 1000 5000
  402.  Position: 3000 2000 10000
  403.  Type:     19
  404.  Layer:    0
  405. End_Chunk
  406. Chunk: SCL
  407. long   y;
  408.  
  409.  
  410.  
  411. resume (2, 2);
  412.  
  413. if (counter (15)==1)
  414.  
  415. {
  416.  
  417.   if (getwin==1)
  418.  
  419.   {
  420.  
  421.     setwin (2);
  422.  
  423.     setvp (10);
  424.  
  425.     ascale;
  426.  
  427.     y=yscale/2;
  428.  
  429.     write (&yscale)=y;
  430.  
  431.     setwin (3);
  432.  
  433.     setvp (11);
  434.  
  435.     write (&yscale)=y;
  436.  
  437.     setwin (2);
  438.  
  439.   }
  440.  
  441.   else
  442.  
  443.   {
  444.  
  445.     setwin (1);
  446.  
  447.     setvp (3);
  448.  
  449.   }
  450.  
  451.   waitfs (5);
  452.  
  453.   counter (15)=0;
  454.  
  455. }
  456. end
  457. End_Chunk
  458. ;
  459. ;-------Object   48-------------------------------------------------------
  460. Chunk: Standard
  461.  Name:     "step[48]"
  462.  Number:   48
  463.  Size:     7000 1000 5000
  464.  Position: 3000 2000 15000
  465.  Type:     19
  466.  Layer:    0
  467. End_Chunk
  468. Chunk: SCL
  469. long   y;
  470.  
  471.  
  472.  
  473. resume (2, 2);
  474.  
  475. if (counter (15)==1)
  476.  
  477. {
  478.  
  479.   if (getwin==1)
  480.  
  481.   {
  482.  
  483.     setwin (2);
  484.  
  485.     setvp (10);
  486.  
  487.     ascale;
  488.  
  489.     y=yscale/2;
  490.  
  491.     write (&yscale)=y;
  492.  
  493.     setwin (3);
  494.  
  495.     setvp (11);
  496.  
  497.     write (&yscale)=y;
  498.  
  499.     setwin (2);
  500.  
  501.   }
  502.  
  503.   else
  504.  
  505.   {
  506.  
  507.     setwin (1);
  508.  
  509.     setvp (3);
  510.  
  511.   }
  512.  
  513.   waitfs (5);
  514.  
  515.   counter (15)=0;
  516.  
  517. }
  518. end
  519. End_Chunk
  520. ;
  521. ;-------Object   44-------------------------------------------------------
  522. Chunk: Standard
  523.  Name:     "Coin-Grp[44]"
  524.  Number:   44
  525.  Size:     1000 1000 1000
  526.  Position: 3662 11000 7208
  527.  Type:     65535
  528.  Layer:    0
  529.  DFlags:   rc
  530. End_Chunk
  531.  
  532. Chunk: SoundRef
  533.  Number: 2
  534.  Index: 1 Sound: 13
  535.  Index: 2 Sound: 3
  536. End_Chunk
  537. Chunk: SCL
  538. if (activate (me, 3))
  539.  
  540. {
  541.  
  542.   counter (20)+=100;
  543.  
  544.   invis (me);
  545.  
  546.   kill (me);
  547.  
  548.   sound (2, 70, 70, 1);
  549.  
  550. }
  551. end
  552. End_Chunk
  553. Chunk: Angular Velocities
  554.  Initial: 0x04FA 0x093E 0x0000
  555. End_Chunk
  556. Chunk: Rotations
  557.  Initial: 0x0000 0x0000 0x0000
  558.  Centre:  500 500 500
  559. End_Chunk
  560.  
  561. Children:
  562. ;
  563. ;-------Object   45-------------------------------------------------------
  564. Chunk: Standard
  565.  Name:     "coin[45]"
  566.  Number:   45
  567.  Size:     1000 1000 400
  568.  Position: 0 0 300
  569.  Type:     17
  570.  Layer:    0
  571. End_Chunk
  572. Chunk: Distancing
  573.  Visible:   3000
  574.  Invisible: 3750
  575.  Replace:   46
  576. End_Chunk
  577. ;
  578. ;-------Object   46-------------------------------------------------------
  579. Chunk: Standard
  580.  Name:     "coin-rep1[46]"
  581.  Number:   46
  582.  Size:     1000 1000 400
  583.  Position: 0 0 300
  584.  Type:     18
  585.  Layer:    0
  586.  DFlags:   R
  587.  OFlags:   Ii
  588. End_Chunk
  589. Chunk: Distancing
  590.  Visible:   6000
  591.  Invisible: 7500
  592.  Replace:   0
  593. End_Chunk
  594.  
  595. End_Children
  596. ;
  597. ;-------Object   17-------------------------------------------------------
  598. Chunk: Standard
  599.  Name:     "Coin-Grp[17]"
  600.  Number:   17
  601.  Size:     1000 1000 1000
  602.  Position: 6913 14067 4855
  603.  Type:     65535
  604.  Layer:    0
  605.  DFlags:   rc
  606. End_Chunk
  607.  
  608. Chunk: SoundRef
  609.  Number: 2
  610.  Index: 1 Sound: 13
  611.  Index: 2 Sound: 3
  612. End_Chunk
  613. Chunk: SCL
  614. if (activate (me, 3))
  615.  
  616. {
  617.  
  618.   counter (20)+=100;
  619.  
  620.   invis (me);
  621.  
  622.   kill (me);
  623.  
  624.   sound (2, 70, 70, 1);
  625.  
  626. }
  627. end
  628. End_Chunk
  629. Chunk: Angular Velocities
  630.  Initial: 0x04FA 0x093E 0x0000
  631. End_Chunk
  632. Chunk: Rotations
  633.  Initial: 0x0000 0x0000 0x0000
  634.  Centre:  500 500 500
  635. End_Chunk
  636.  
  637. Children:
  638. ;
  639. ;-------Object   18-------------------------------------------------------
  640. Chunk: Standard
  641.  Name:     "coin[18]"
  642.  Number:   18
  643.  Size:     1000 1000 400
  644.  Position: 0 0 300
  645.  Type:     17
  646.  Layer:    0
  647. End_Chunk
  648. Chunk: Distancing
  649.  Visible:   3000
  650.  Invisible: 3750
  651.  Replace:   43
  652. End_Chunk
  653. ;
  654. ;-------Object   43-------------------------------------------------------
  655. Chunk: Standard
  656.  Name:     "coin-rep1[43]"
  657.  Number:   43
  658.  Size:     1000 1000 400
  659.  Position: 0 0 300
  660.  Type:     18
  661.  Layer:    0
  662.  DFlags:   R
  663.  OFlags:   Ii
  664. End_Chunk
  665. Chunk: Distancing
  666.  Visible:   6000
  667.  Invisible: 7500
  668.  Replace:   0
  669. End_Chunk
  670.  
  671. End_Children
  672. ;
  673. ;-------Object   55-------------------------------------------------------
  674. Chunk: Standard
  675.  Name:     "Coin-Grp[55]"
  676.  Number:   55
  677.  Size:     1000 1000 1000
  678.  Position: 2514 11000 2748
  679.  Type:     65535
  680.  Layer:    0
  681.  DFlags:   rc
  682. End_Chunk
  683.  
  684. Chunk: SoundRef
  685.  Number: 2
  686.  Index: 1 Sound: 13
  687.  Index: 2 Sound: 3
  688. End_Chunk
  689. Chunk: SCL
  690. if (activate (me, 3))
  691.  
  692. {
  693.  
  694.   counter (20)+=100;
  695.  
  696.   invis (me);
  697.  
  698.   kill (me);
  699.  
  700.   sound (2, 70, 70, 1);
  701.  
  702. }
  703. end
  704. End_Chunk
  705. Chunk: Angular Velocities
  706.  Initial: 0x04FA 0x093E 0x0000
  707. End_Chunk
  708. Chunk: Rotations
  709.  Initial: 0x0000 0x0000 0x0000
  710.  Centre:  500 500 500
  711. End_Chunk
  712.  
  713. Children:
  714. ;
  715. ;-------Object   56-------------------------------------------------------
  716. Chunk: Standard
  717.  Name:     "coin[56]"
  718.  Number:   56
  719.  Size:     1000 1000 400
  720.  Position: 0 0 300
  721.  Type:     17
  722.  Layer:    0
  723. End_Chunk
  724. Chunk: Distancing
  725.  Visible:   3000
  726.  Invisible: 3750
  727.  Replace:   57
  728. End_Chunk
  729. ;
  730. ;-------Object   57-------------------------------------------------------
  731. Chunk: Standard
  732.  Name:     "coin-rep1[57]"
  733.  Number:   57
  734.  Size:     1000 1000 400
  735.  Position: 0 0 300
  736.  Type:     18
  737.  Layer:    0
  738.  DFlags:   R
  739.  OFlags:   Ii
  740. End_Chunk
  741. Chunk: Distancing
  742.  Visible:   6000
  743.  Invisible: 7500
  744.  Replace:   0
  745. End_Chunk
  746.  
  747. End_Children
  748. ;
  749. ;-------Object   58-------------------------------------------------------
  750. Chunk: Standard
  751.  Name:     "Coin-Grp[58]"
  752.  Number:   58
  753.  Size:     1000 1000 1000
  754.  Position: 1850 11000 5060
  755.  Type:     65535
  756.  Layer:    0
  757.  DFlags:   rc
  758. End_Chunk
  759.  
  760. Chunk: SoundRef
  761.  Number: 2
  762.  Index: 1 Sound: 13
  763.  Index: 2 Sound: 3
  764. End_Chunk
  765. Chunk: SCL
  766. if (activate (me, 3))
  767.  
  768. {
  769.  
  770.   counter (20)+=100;
  771.  
  772.   invis (me);
  773.  
  774.   kill (me);
  775.  
  776.   sound (2, 70, 70, 1);
  777.  
  778. }
  779. end
  780. End_Chunk
  781. Chunk: Angular Velocities
  782.  Initial: 0x04FA 0x093E 0x0000
  783. End_Chunk
  784. Chunk: Rotations
  785.  Initial: 0x0000 0x0000 0x0000
  786.  Centre:  500 500 500
  787. End_Chunk
  788.  
  789. Children:
  790. ;
  791. ;-------Object   59-------------------------------------------------------
  792. Chunk: Standard
  793.  Name:     "coin[59]"
  794.  Number:   59
  795.  Size:     1000 1000 400
  796.  Position: 0 0 300
  797.  Type:     17
  798.  Layer:    0
  799. End_Chunk
  800. Chunk: Distancing
  801.  Visible:   3000
  802.  Invisible: 3750
  803.  Replace:   60
  804. End_Chunk
  805. ;
  806. ;-------Object   60-------------------------------------------------------
  807. Chunk: Standard
  808.  Name:     "coin-rep1[60]"
  809.  Number:   60
  810.  Size:     1000 1000 400
  811.  Position: 0 0 300
  812.  Type:     18
  813.  Layer:    0
  814.  DFlags:   R
  815.  OFlags:   Ii
  816. End_Chunk
  817. Chunk: Distancing
  818.  Visible:   6000
  819.  Invisible: 7500
  820.  Replace:   0
  821. End_Chunk
  822.  
  823. End_Children
  824.  
  825. End_Children
  826. ;
  827. ;-------Object   50-------------------------------------------------------
  828. Chunk: Standard
  829.  Name:     "step[50]"
  830.  Number:   50
  831.  Size:     4000 1000 28000
  832.  Position: 35900 15000 47000
  833.  Type:     19
  834.  Layer:    0
  835. End_Chunk
  836. Chunk: SCL
  837. long   y;
  838.  
  839.  
  840.  
  841. resume (2, 2);
  842.  
  843. if (counter (15)==1)
  844.  
  845. {
  846.  
  847.   if (getwin==1)
  848.  
  849.   {
  850.  
  851.     setwin (2);
  852.  
  853.     setvp (10);
  854.  
  855.     ascale;
  856.  
  857.     y=yscale/2;
  858.  
  859.     write (&yscale)=y;
  860.  
  861.     setwin (3);
  862.  
  863.     setvp (11);
  864.  
  865.     write (&yscale)=y;
  866.  
  867.     setwin (2);
  868.  
  869.   }
  870.  
  871.   else
  872.  
  873.   {
  874.  
  875.     setwin (1);
  876.  
  877.     setvp (3);
  878.  
  879.   }
  880.  
  881.   waitfs (5);
  882.  
  883.   counter (15)=0;
  884.  
  885. }
  886. end
  887. End_Chunk
  888. ;
  889. ;-------Object   37-------------------------------------------------------
  890. Chunk: Standard
  891.  Name:     "section"
  892.  Number:   37
  893.  Size:     10000 30000 60000
  894.  Position: 10 0 0
  895.  Type:     65535
  896.  Layer:    0
  897.  DFlags:   E
  898. End_Chunk
  899. Chunk: Colours
  900.  Number: 18
  901.  0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B
  902.  0x0B 0x0B
  903. End_Chunk
  904. Chunk: SCL
  905. long   y;
  906.  
  907. short  in2, in3;
  908.  
  909.  
  910.  
  911. resume (2, 2);
  912.  
  913. if (counter (15)==1)
  914.  
  915. {
  916.  
  917.   if (getwin==1)
  918.  
  919.   {
  920.  
  921.     setwin (2);
  922.  
  923.     waitf;
  924.  
  925.     write (&insy (1))=ywincent-ywinsize+20;
  926.  
  927.     setvp (10);
  928.  
  929.     ascale;
  930.  
  931.     y=yscale/2;
  932.  
  933.     write (&yscale)=y;
  934.  
  935.     setwin (3);
  936.  
  937.     waitf;
  938.  
  939.     in2=ywincent-ywinsize+20;
  940.  
  941.     setvp (11);
  942.  
  943.     write (&yscale)=y;
  944.  
  945.     setwin (2);
  946.  
  947.     write (&insy (2))=in2;
  948.  
  949.   }
  950.  
  951.   else
  952.  
  953.   {
  954.  
  955.     setwin (1);
  956.  
  957.     setvp (3);
  958.  
  959.   }
  960.  
  961.   waitfs (5);
  962.  
  963.   counter (15)=0;
  964.  
  965. }
  966. end
  967. End_Chunk
  968.  
  969. Children:
  970. ;
  971. ;-------Object    5-------------------------------------------------------
  972. Chunk: Standard
  973.  Name:     "step"
  974.  Number:   5
  975.  Size:     10000 4000 10000
  976.  Position: 0 0 10000
  977.  Type:     0
  978.  Layer:    0
  979. End_Chunk
  980. Chunk: Colours
  981.  Number: 6
  982.  0x25 0xE1 0xE0 0x24 0xBA 0x26
  983. End_Chunk
  984. Chunk: SCL
  985. long   y;
  986.  
  987.  
  988.  
  989. resume (2, 2);
  990.  
  991. if (counter (15)==1)
  992.  
  993. {
  994.  
  995.   if (getwin==1)
  996.  
  997.   {
  998.  
  999.     setwin (2);
  1000.  
  1001.     setvp (10);
  1002.  
  1003.     ascale;
  1004.  
  1005.     y=yscale/2;
  1006.  
  1007.     write (&yscale)=y;
  1008.  
  1009.     setwin (3);
  1010.  
  1011.     setvp (11);
  1012.  
  1013.     write (&yscale)=y;
  1014.  
  1015.     setwin (2);
  1016.  
  1017.   }
  1018.  
  1019.   else
  1020.  
  1021.   {
  1022.  
  1023.     setwin (1);
  1024.  
  1025.     setvp (3);
  1026.  
  1027.   }
  1028.  
  1029.   waitfs (5);
  1030.  
  1031.   counter (15)=0;
  1032.  
  1033. }
  1034. end
  1035. End_Chunk
  1036. ;
  1037. ;-------Object    6-------------------------------------------------------
  1038. Chunk: Standard
  1039.  Name:     "step[6]"
  1040.  Number:   6
  1041.  Size:     10000 8000 10000
  1042.  Position: 0 0 20000
  1043.  Type:     0
  1044.  Layer:    0
  1045. End_Chunk
  1046. Chunk: Colours
  1047.  Number: 6
  1048.  0x25 0xE1 0xE0 0xE1 0xB8 0x26
  1049. End_Chunk
  1050. Chunk: SCL
  1051. long   y;
  1052.  
  1053.  
  1054.  
  1055. resume (2, 2);
  1056.  
  1057. if (counter (15)==1)
  1058.  
  1059. {
  1060.  
  1061.   if (getwin==1)
  1062.  
  1063.   {
  1064.  
  1065.     setwin (2);
  1066.  
  1067.     setvp (10);
  1068.  
  1069.     ascale;
  1070.  
  1071.     y=yscale/2;
  1072.  
  1073.     write (&yscale)=y;
  1074.  
  1075.     setwin (3);
  1076.  
  1077.     setvp (11);
  1078.  
  1079.     write (&yscale)=y;
  1080.  
  1081.     setwin (2);
  1082.  
  1083.   }
  1084.  
  1085.   else
  1086.  
  1087.   {
  1088.  
  1089.     setwin (1);
  1090.  
  1091.     setvp (3);
  1092.  
  1093.   }
  1094.  
  1095.   waitfs (5);
  1096.  
  1097.   counter (15)=0;
  1098.  
  1099. }
  1100. end
  1101. End_Chunk
  1102. ;
  1103. ;-------Object    8-------------------------------------------------------
  1104. Chunk: Standard
  1105.  Name:     "step[8]"
  1106.  Number:   8
  1107.  Size:     10000 8000 10000
  1108.  Position: 0 0 40000
  1109.  Type:     0
  1110.  Layer:    0
  1111. End_Chunk
  1112. Chunk: Colours
  1113.  Number: 6
  1114.  0x25 0xE1 0xE0 0xE1 0xBA 0x26
  1115. End_Chunk
  1116. Chunk: SCL
  1117. long   y;
  1118.  
  1119.  
  1120.  
  1121. resume (2, 2);
  1122.  
  1123. if (counter (15)==1)
  1124.  
  1125. {
  1126.  
  1127.   if (getwin==1)
  1128.  
  1129.   {
  1130.  
  1131.     setwin (2);
  1132.  
  1133.     setvp (10);
  1134.  
  1135.     ascale;
  1136.  
  1137.     y=yscale/2;
  1138.  
  1139.     write (&yscale)=y;
  1140.  
  1141.     setwin (3);
  1142.  
  1143.     setvp (11);
  1144.  
  1145.     write (&yscale)=y;
  1146.  
  1147.     setwin (2);
  1148.  
  1149.   }
  1150.  
  1151.   else
  1152.  
  1153.   {
  1154.  
  1155.     setwin (1);
  1156.  
  1157.     setvp (3);
  1158.  
  1159.   }
  1160.  
  1161.   waitfs (5);
  1162.  
  1163.   counter (15)=0;
  1164.  
  1165. }
  1166. end
  1167. End_Chunk
  1168. ;
  1169. ;-------Object   25-------------------------------------------------------
  1170. Chunk: Standard
  1171.  Name:     "Coin-Grp[25]"
  1172.  Number:   25
  1173.  Size:     1000 1000 1000
  1174.  Position: 6254 10000 27338
  1175.  Type:     65535
  1176.  Layer:    0
  1177.  DFlags:   rc
  1178. End_Chunk
  1179.  
  1180. Chunk: SoundRef
  1181.  Number: 2
  1182.  Index: 1 Sound: 13
  1183.  Index: 2 Sound: 3
  1184. End_Chunk
  1185. Chunk: SCL
  1186. if (activate (me, 3))
  1187.  
  1188. {
  1189.  
  1190.   counter (20)+=100;
  1191.  
  1192.   invis (me);
  1193.  
  1194.   kill (me);
  1195.  
  1196.   sound (2, 70, 70, 1);
  1197.  
  1198. }
  1199. end
  1200. End_Chunk
  1201. Chunk: Angular Velocities
  1202.  Initial: 0x0444 0x0AAA 0x0000
  1203. End_Chunk
  1204. Chunk: Rotations
  1205.  Initial: 0x0000 0x0000 0x0000
  1206.  Centre:  500 500 500
  1207. End_Chunk
  1208.  
  1209. Children:
  1210. ;
  1211. ;-------Object   26-------------------------------------------------------
  1212. Chunk: Standard
  1213.  Name:     "coin[26]"
  1214.  Number:   26
  1215.  Size:     1000 1000 400
  1216.  Position: 0 0 300
  1217.  Type:     17
  1218.  Layer:    0
  1219.  OFlags:   r
  1220. End_Chunk
  1221. Chunk: Distancing
  1222.  Visible:   3000
  1223.  Invisible: 3750
  1224.  Replace:   27
  1225. End_Chunk
  1226. ;
  1227. ;-------Object   27-------------------------------------------------------
  1228. Chunk: Standard
  1229.  Name:     "coin-rep1[27]"
  1230.  Number:   27
  1231.  Size:     1000 1000 400
  1232.  Position: 0 0 300
  1233.  Type:     18
  1234.  Layer:    0
  1235.  DFlags:   R
  1236.  OFlags:   Ii
  1237. End_Chunk
  1238. Chunk: Distancing
  1239.  Visible:   6000
  1240.  Invisible: 7500
  1241.  Replace:   0
  1242. End_Chunk
  1243.  
  1244. End_Children
  1245. ;
  1246. ;-------Object   28-------------------------------------------------------
  1247. Chunk: Standard
  1248.  Name:     "Coin-Grp[28]"
  1249.  Number:   28
  1250.  Size:     1000 1000 1000
  1251.  Position: 7928 5000 4544
  1252.  Type:     65535
  1253.  Layer:    0
  1254.  DFlags:   rc
  1255. End_Chunk
  1256.  
  1257. Chunk: SoundRef
  1258.  Number: 2
  1259.  Index: 1 Sound: 13
  1260.  Index: 2 Sound: 3
  1261. End_Chunk
  1262. Chunk: SCL
  1263. if (activate (me, 3))
  1264.  
  1265. {
  1266.  
  1267.   counter (20)+=100;
  1268.  
  1269.   invis (me);
  1270.  
  1271.   kill (me);
  1272.  
  1273.   sound (2, 70, 70, 1);
  1274.  
  1275. }
  1276. end
  1277. End_Chunk
  1278. Chunk: Angular Velocities
  1279.  Initial: 0x038E 0x0666 0x0000
  1280. End_Chunk
  1281. Chunk: Rotations
  1282.  Initial: 0x0000 0x0000 0x0000
  1283.  Centre:  500 500 500
  1284. End_Chunk
  1285.  
  1286. Children:
  1287. ;
  1288. ;-------Object   29-------------------------------------------------------
  1289. Chunk: Standard
  1290.  Name:     "coin[29]"
  1291.  Number:   29
  1292.  Size:     1000 1000 400
  1293.  Position: 0 0 300
  1294.  Type:     17
  1295.  Layer:    0
  1296. End_Chunk
  1297. Chunk: Distancing
  1298.  Visible:   3000
  1299.  Invisible: 3750
  1300.  Replace:   30
  1301. End_Chunk
  1302. ;
  1303. ;-------Object   30-------------------------------------------------------
  1304. Chunk: Standard
  1305.  Name:     "coin-rep1[30]"
  1306.  Number:   30
  1307.  Size:     1000 1000 400
  1308.  Position: 0 0 300
  1309.  Type:     18
  1310.  Layer:    0
  1311.  DFlags:   R
  1312.  OFlags:   Ii
  1313. End_Chunk
  1314. Chunk: Distancing
  1315.  Visible:   6000
  1316.  Invisible: 7500
  1317.  Replace:   0
  1318. End_Chunk
  1319.  
  1320. End_Children
  1321. ;
  1322. ;-------Object   23-------------------------------------------------------
  1323. Chunk: Standard
  1324.  Name:     "Coin-Grp"
  1325.  Number:   23
  1326.  Size:     1000 1000 1000
  1327.  Position: 5950 8000 15984
  1328.  Type:     65535
  1329.  Layer:    0
  1330.  DFlags:   rc
  1331. End_Chunk
  1332.  
  1333. Chunk: SoundRef
  1334.  Number: 2
  1335.  Index: 1 Sound: 13
  1336.  Index: 2 Sound: 3
  1337. End_Chunk
  1338. Chunk: SCL
  1339. if (activate (me, 3))
  1340.  
  1341. {
  1342.  
  1343.   counter (20)+=100;
  1344.  
  1345.   invis (me);
  1346.  
  1347.   kill (me);
  1348.  
  1349.   sound (2, 70, 70, 1);
  1350.  
  1351. }
  1352. end
  1353. End_Chunk
  1354. Chunk: Angular Velocities
  1355.  Initial: 0x04FA 0x093E 0x0000
  1356. End_Chunk
  1357. Chunk: Rotations
  1358.  Initial: 0x0000 0x0000 0x0000
  1359.  Centre:  500 500 500
  1360. End_Chunk
  1361.  
  1362. Children:
  1363. ;
  1364. ;-------Object   16-------------------------------------------------------
  1365. Chunk: Standard
  1366.  Name:     "coin"
  1367.  Number:   16
  1368.  Size:     1000 1000 400
  1369.  Position: 0 0 300
  1370.  Type:     17
  1371.  Layer:    0
  1372.  OFlags:   r
  1373. End_Chunk
  1374. Chunk: Distancing
  1375.  Visible:   3000
  1376.  Invisible: 3750
  1377.  Replace:   24
  1378. End_Chunk
  1379. ;
  1380. ;-------Object   24-------------------------------------------------------
  1381. Chunk: Standard
  1382.  Name:     "coin-rep1"
  1383.  Number:   24
  1384.  Size:     1000 1000 400
  1385.  Position: 0 0 300
  1386.  Type:     18
  1387.  Layer:    0
  1388.  DFlags:   R
  1389.  OFlags:   Ii
  1390. End_Chunk
  1391. Chunk: Distancing
  1392.  Visible:   6000
  1393.  Invisible: 7500
  1394.  Replace:   0
  1395. End_Chunk
  1396.  
  1397. End_Children
  1398. ;
  1399. ;-------Object   34-------------------------------------------------------
  1400. Chunk: Standard
  1401.  Name:     "Coin-Grp[34]"
  1402.  Number:   34
  1403.  Size:     1000 1000 1000
  1404.  Position: 2110 13000 43456
  1405.  Type:     65535
  1406.  Layer:    0
  1407.  DFlags:   rc
  1408. End_Chunk
  1409.  
  1410. Chunk: SoundRef
  1411.  Number: 2
  1412.  Index: 1 Sound: 13
  1413.  Index: 2 Sound: 3
  1414. End_Chunk
  1415. Chunk: SCL
  1416. if (activate (me, 3))
  1417.  
  1418. {
  1419.  
  1420.   counter (20)+=100;
  1421.  
  1422.   invis (me);
  1423.  
  1424.   kill (me);
  1425.  
  1426.   sound (2, 70, 70, 1);
  1427.  
  1428. }
  1429. end
  1430. End_Chunk
  1431. Chunk: Angular Velocities
  1432.  Initial: 0x04FA 0x093E 0x0000
  1433. End_Chunk
  1434. Chunk: Rotations
  1435.  Initial: 0x0000 0x0000 0x0000
  1436.  Centre:  500 500 500
  1437. End_Chunk
  1438.  
  1439. Children:
  1440. ;
  1441. ;-------Object   35-------------------------------------------------------
  1442. Chunk: Standard
  1443.  Name:     "coin[35]"
  1444.  Number:   35
  1445.  Size:     1000 1000 400
  1446.  Position: 0 0 300
  1447.  Type:     17
  1448.  Layer:    0
  1449.  OFlags:   r
  1450. End_Chunk
  1451. Chunk: Distancing
  1452.  Visible:   3000
  1453.  Invisible: 3750
  1454.  Replace:   36
  1455. End_Chunk
  1456. ;
  1457. ;-------Object   36-------------------------------------------------------
  1458. Chunk: Standard
  1459.  Name:     "coin-rep1[36]"
  1460.  Number:   36
  1461.  Size:     1000 1000 400
  1462.  Position: 0 0 300
  1463.  Type:     18
  1464.  Layer:    0
  1465.  DFlags:   R
  1466.  OFlags:   Ii
  1467. End_Chunk
  1468. Chunk: Distancing
  1469.  Visible:   6000
  1470.  Invisible: 7500
  1471.  Replace:   0
  1472. End_Chunk
  1473.  
  1474. End_Children
  1475. ;
  1476. ;-------Object   31-------------------------------------------------------
  1477. Chunk: Standard
  1478.  Name:     "Coin-Grp[31]"
  1479.  Number:   31
  1480.  Size:     1000 1000 1000
  1481.  Position: 2110 11000 47206
  1482.  Type:     65535
  1483.  Layer:    0
  1484.  DFlags:   rc
  1485. End_Chunk
  1486.  
  1487. Chunk: SoundRef
  1488.  Number: 2
  1489.  Index: 1 Sound: 13
  1490.  Index: 2 Sound: 3
  1491. End_Chunk
  1492. Chunk: SCL
  1493. if (activate (me, 3))
  1494.  
  1495. {
  1496.  
  1497.   counter (20)+=100;
  1498.  
  1499.   invis (me);
  1500.  
  1501.   kill (me);
  1502.  
  1503.   sound (2, 70, 70, 1);
  1504.  
  1505. }
  1506. end
  1507. End_Chunk
  1508. Chunk: Angular Velocities
  1509.  Initial: 0x04FA 0x093E 0x0000
  1510. End_Chunk
  1511. Chunk: Rotations
  1512.  Initial: 0x0000 0x0000 0x0000
  1513.  Centre:  500 500 500
  1514. End_Chunk
  1515.  
  1516. Children:
  1517. ;
  1518. ;-------Object   32-------------------------------------------------------
  1519. Chunk: Standard
  1520.  Name:     "coin[32]"
  1521.  Number:   32
  1522.  Size:     1000 1000 400
  1523.  Position: 0 0 300
  1524.  Type:     17
  1525.  Layer:    0
  1526.  OFlags:   r
  1527. End_Chunk
  1528. Chunk: Distancing
  1529.  Visible:   3000
  1530.  Invisible: 3750
  1531.  Replace:   33
  1532. End_Chunk
  1533. ;
  1534. ;-------Object   33-------------------------------------------------------
  1535. Chunk: Standard
  1536.  Name:     "coin-rep1[33]"
  1537.  Number:   33
  1538.  Size:     1000 1000 400
  1539.  Position: 0 0 300
  1540.  Type:     18
  1541.  Layer:    0
  1542.  DFlags:   R
  1543.  OFlags:   Ii
  1544. End_Chunk
  1545. Chunk: Distancing
  1546.  Visible:   6000
  1547.  Invisible: 7500
  1548.  Replace:   0
  1549. End_Chunk
  1550.  
  1551. End_Children
  1552. ;
  1553. ;-------Object   38-------------------------------------------------------
  1554. Chunk: Standard
  1555.  Name:     "Coin-Grp[38]"
  1556.  Number:   38
  1557.  Size:     1000 1000 1000
  1558.  Position: 7238 13000 47404
  1559.  Type:     65535
  1560.  Layer:    0
  1561.  DFlags:   rc
  1562. End_Chunk
  1563.  
  1564. Chunk: SoundRef
  1565.  Number: 2
  1566.  Index: 1 Sound: 13
  1567.  Index: 2 Sound: 3
  1568. End_Chunk
  1569. Chunk: SCL
  1570. if (activate (me, 3))
  1571.  
  1572. {
  1573.  
  1574.   counter (20)+=100;
  1575.  
  1576.   invis (me);
  1577.  
  1578.   kill (me);
  1579.  
  1580.   sound (2, 70, 70, 1);
  1581.  
  1582. }
  1583. end
  1584. End_Chunk
  1585. Chunk: Angular Velocities
  1586.  Initial: 0x04FA 0x093E 0x0000
  1587. End_Chunk
  1588. Chunk: Rotations
  1589.  Initial: 0x0000 0x0000 0x0000
  1590.  Centre:  500 500 500
  1591. End_Chunk
  1592.  
  1593. Children:
  1594. ;
  1595. ;-------Object   39-------------------------------------------------------
  1596. Chunk: Standard
  1597.  Name:     "coin[39]"
  1598.  Number:   39
  1599.  Size:     1000 1000 400
  1600.  Position: 0 0 300
  1601.  Type:     17
  1602.  Layer:    0
  1603.  OFlags:   r
  1604. End_Chunk
  1605. Chunk: Distancing
  1606.  Visible:   3000
  1607.  Invisible: 3750
  1608.  Replace:   40
  1609. End_Chunk
  1610. ;
  1611. ;-------Object   40-------------------------------------------------------
  1612. Chunk: Standard
  1613.  Name:     "coin-rep1[40]"
  1614.  Number:   40
  1615.  Size:     1000 1000 400
  1616.  Position: 0 0 300
  1617.  Type:     18
  1618.  Layer:    0
  1619.  DFlags:   R
  1620.  OFlags:   Ii
  1621. End_Chunk
  1622. Chunk: Distancing
  1623.  Visible:   6000
  1624.  Invisible: 7500
  1625.  Replace:   0
  1626. End_Chunk
  1627.  
  1628. End_Children
  1629. ;
  1630. ;-------Object   21-------------------------------------------------------
  1631. Chunk: Standard
  1632.  Name:     "platform"
  1633.  Number:   21
  1634.  Size:     8000 200 8000
  1635.  Position: 1139 1 50000
  1636.  Type:     14
  1637.  Layer:    0
  1638. End_Chunk
  1639. Chunk: InitPos
  1640.  Position: 1139 1 50000
  1641. End_Chunk
  1642. Chunk: SCL
  1643. resume (2, 2);
  1644.  
  1645. if (activate (me, 3))
  1646.  
  1647. {
  1648.  
  1649.   do
  1650.  
  1651.   {
  1652.  
  1653.     ydrive (me)=300;
  1654.  
  1655.     waitf;
  1656.  
  1657.   }
  1658.  
  1659.   until (ypos (me)>=20000);
  1660.  
  1661.   ydrive (me)=0;
  1662.  
  1663.   ypos (me)=20000;
  1664.  
  1665.   waitfs (100);
  1666.  
  1667.   do
  1668.  
  1669.   {
  1670.  
  1671.     ydrive (me)=-300;
  1672.  
  1673.     waitf;
  1674.  
  1675.   }
  1676.  
  1677.   until (ypos (me)<=10);
  1678.  
  1679.   ydrive (me)=0;
  1680.  
  1681.   ypos (me)=0;
  1682.  
  1683.   waitfs (50);
  1684.  
  1685.   clrtrig (me, 3);
  1686.  
  1687. }
  1688. end
  1689. End_Chunk
  1690. Chunk: Dynamics
  1691.  MovType:     0x80000001
  1692.  Fuel:        0
  1693.  Climb:       0
  1694.  Gravity:     0
  1695.  Coupled:     0
  1696.  Drive:       0 0 0
  1697.  External:    0 0 0
  1698.  MaxForce:    0 0 0
  1699.  GroundFric:  0 0 0
  1700.  Restitution: 0 0 0
  1701.  Velocity:    0 0 0
  1702.  MaxVel:      0 0 0
  1703. End_Chunk
  1704. ;
  1705. ;-------Object   61-------------------------------------------------------
  1706. Chunk: Standard
  1707.  Name:     "Coin-Grp[61]"
  1708.  Number:   61
  1709.  Size:     1000 1000 1000
  1710.  Position: 4752 1000 34460
  1711.  Type:     65535
  1712.  Layer:    0
  1713.  DFlags:   rc
  1714. End_Chunk
  1715.  
  1716. Chunk: SoundRef
  1717.  Number: 2
  1718.  Index: 1 Sound: 13
  1719.  Index: 2 Sound: 3
  1720. End_Chunk
  1721. Chunk: SCL
  1722. if (activate (me, 3))
  1723.  
  1724. {
  1725.  
  1726.   counter (20)+=100;
  1727.  
  1728.   invis (me);
  1729.  
  1730.   kill (me);
  1731.  
  1732.   sound (2, 70, 70, 1);
  1733.  
  1734. }
  1735. end
  1736. End_Chunk
  1737. Chunk: Angular Velocities
  1738.  Initial: 0x04FA 0x093E 0x0000
  1739. End_Chunk
  1740. Chunk: Rotations
  1741.  Initial: 0x0000 0x0000 0x0000
  1742.  Centre:  500 500 500
  1743. End_Chunk
  1744.  
  1745. Children:
  1746. ;
  1747. ;-------Object   62-------------------------------------------------------
  1748. Chunk: Standard
  1749.  Name:     "coin[62]"
  1750.  Number:   62
  1751.  Size:     1000 1000 400
  1752.  Position: 0 0 300
  1753.  Type:     17
  1754.  Layer:    0
  1755.  OFlags:   r
  1756. End_Chunk
  1757. Chunk: Distancing
  1758.  Visible:   3000
  1759.  Invisible: 3750
  1760.  Replace:   63
  1761. End_Chunk
  1762. ;
  1763. ;-------Object   63-------------------------------------------------------
  1764. Chunk: Standard
  1765.  Name:     "coin-rep1[63]"
  1766.  Number:   63
  1767.  Size:     1000 1000 400
  1768.  Position: 0 0 300
  1769.  Type:     18
  1770.  Layer:    0
  1771.  DFlags:   R
  1772.  OFlags:   Ii
  1773. End_Chunk
  1774. Chunk: Distancing
  1775.  Visible:   6000
  1776.  Invisible: 7500
  1777.  Replace:   0
  1778. End_Chunk
  1779.  
  1780. End_Children
  1781.  
  1782. End_Children
  1783. ;
  1784. ;-------Object   19-------------------------------------------------------
  1785. Chunk: Standard
  1786.  Name:     "Collisio"
  1787.  Number:   19
  1788.  Size:     10 29999 80000
  1789.  Position: 1000 0 0
  1790.  Type:     65535
  1791.  Layer:    0
  1792. End_Chunk
  1793. ;
  1794. ;-------Object   51-------------------------------------------------------
  1795. Chunk: Standard
  1796.  Name:     "step[51]"
  1797.  Number:   51
  1798.  Size:     12900 1000 5000
  1799.  Position: 27000 15000 75000
  1800.  Type:     19
  1801.  Layer:    0
  1802. End_Chunk
  1803. Chunk: SCL
  1804. long   y;
  1805.  
  1806.  
  1807.  
  1808. resume (2, 2);
  1809.  
  1810. if (counter (15)==1)
  1811.  
  1812. {
  1813.  
  1814.   if (getwin==1)
  1815.  
  1816.   {
  1817.  
  1818.     setwin (2);
  1819.  
  1820.     setvp (10);
  1821.  
  1822.     ascale;
  1823.  
  1824.     y=yscale/2;
  1825.  
  1826.     write (&yscale)=y;
  1827.  
  1828.     setwin (3);
  1829.  
  1830.     setvp (11);
  1831.  
  1832.     write (&yscale)=y;
  1833.  
  1834.     setwin (2);
  1835.  
  1836.   }
  1837.  
  1838.   else
  1839.  
  1840.   {
  1841.  
  1842.     setwin (1);
  1843.  
  1844.     setvp (3);
  1845.  
  1846.   }
  1847.  
  1848.   waitfs (5);
  1849.  
  1850.   counter (15)=0;
  1851.  
  1852. }
  1853. end
  1854. End_Chunk
  1855. ;
  1856. ;-------Object   52-------------------------------------------------------
  1857. Chunk: Standard
  1858.  Name:     "platform[52]"
  1859.  Number:   52
  1860.  Size:     4000 200 4000
  1861.  Position: 35900 12000 43000
  1862.  Type:     14
  1863.  Layer:    0
  1864. End_Chunk
  1865. Chunk: InitPos
  1866.  Position: 35900 12000 43000
  1867. End_Chunk
  1868. Chunk: SCL
  1869. resume (2, 2);
  1870.  
  1871. if (activate (me, 3))
  1872.  
  1873. {
  1874.  
  1875.   do
  1876.  
  1877.   {
  1878.  
  1879.     ydrive (me)=300;
  1880.  
  1881.     waitf;
  1882.  
  1883.   }
  1884.  
  1885.   until (ypos (me)>=29800);
  1886.  
  1887.   ydrive (me)=0;
  1888.  
  1889.   ypos (me)=29800;
  1890.  
  1891.   waitfs (100);
  1892.  
  1893.   do
  1894.  
  1895.   {
  1896.  
  1897.     ydrive (me)=-300;
  1898.  
  1899.     waitf;
  1900.  
  1901.   }
  1902.  
  1903.   until (ypos (me)<=11500);
  1904.  
  1905.   ydrive (me)=0;
  1906.  
  1907.   ypos (me)=12000;
  1908.  
  1909.   waitfs (50);
  1910.  
  1911.   clrtrig (me, 3);
  1912.  
  1913. }
  1914. end
  1915. End_Chunk
  1916. Chunk: Dynamics
  1917.  MovType:     0x80000001
  1918.  Fuel:        0
  1919.  Climb:       0
  1920.  Gravity:     0
  1921.  Coupled:     0
  1922.  Drive:       0 0 0
  1923.  External:    0 0 0
  1924.  MaxForce:    0 0 0
  1925.  GroundFric:  0 0 0
  1926.  Restitution: 0 0 0
  1927.  Velocity:    0 0 0
  1928.  MaxVel:      0 0 0
  1929. End_Chunk
  1930.  
  1931. End_Children
  1932. ;
  1933. ;-------Object   53-------------------------------------------------------
  1934. Chunk: Standard
  1935.  Name:     "Collisio[53]"
  1936.  Number:   53
  1937.  Size:     62719 29999 80000
  1938.  Position: 1961000 0 2080000
  1939.  Type:     65535
  1940.  Layer:    0
  1941. End_Chunk
  1942. ;
  1943. ;-------Object   54-------------------------------------------------------
  1944. Chunk: Standard
  1945.  Name:     "Collisio[54]"
  1946.  Number:   54
  1947.  Size:     62719 29999 80000
  1948.  Position: 1961000 0 1920000
  1949.  Type:     65535
  1950.  Layer:    0
  1951. End_Chunk
  1952.  
  1953. End_Children
  1954. ;
  1955. ;-------Object    2-------------------------------------------------------
  1956. Chunk: Standard
  1957.  Name:     "Object-X"
  1958.  Number:   2
  1959.  Size:     1400 4000 1400
  1960.  Position: 2000602 1000 2007146
  1961.  Type:     65535
  1962.  Layer:    0
  1963.  DFlags:   cM
  1964. End_Chunk
  1965.  
  1966. Chunk: SoundRef
  1967.  Number: 11
  1968.  Index: 1 Sound: 3
  1969.  Index: 2 Sound: 6
  1970.  Index: 3 Sound: 7
  1971.  Index: 4 Sound: 8
  1972.  Index: 5 Sound: 9
  1973.  Index: 6 Sound: 10
  1974.  Index: 7 Sound: 11
  1975.  Index: 8 Sound: 12
  1976.  Index: 9 Sound: 13
  1977.  Index: 10 Sound: 4
  1978.  Index: 11 Sound: 5
  1979. End_Chunk
  1980. Chunk: Dynamics
  1981.  MovType:     0x80000083
  1982.  Fuel:        0
  1983.  Climb:       0
  1984.  Gravity:     0
  1985.  Coupled:     4
  1986.  Drive:       0 0 0
  1987.  External:    0 0 0
  1988.  MaxForce:    0 0 0
  1989.  GroundFric:  0 0 0
  1990.  Restitution: 0 0 0
  1991.  Velocity:    0 0 0
  1992.  MaxVel:      0 0 0
  1993. End_Chunk
  1994. Chunk: Angular Velocities
  1995.  Initial: 0x0000 0x0666 0x0000
  1996. End_Chunk
  1997. Chunk: Bending
  1998.  Number: 1
  1999.  Subchunk
  2000.   Angle:  0 0 0
  2001.    First:  9
  2002.   Last:   16
  2003.   Centre: 8
  2004. End_Chunk
  2005. Chunk: InitPos
  2006.  Position: 2000602 1000 2007146
  2007. End_Chunk
  2008. Chunk: SCL
  2009. long   VertV, Grav=-100, Height=4000, CoRes=80, base=30, 
  2010.  
  2011.     Phase=0, Squash=7, AntiSqsh=700, SqoshVel;
  2012.  
  2013. short  dir, mag;
  2014.  
  2015. fixed  R;
  2016.  
  2017.  
  2018.  
  2019.  /* Phase=0  normal movemont */
  2020.  
  2021.  
  2022.  
  2023. if (Phase==0)
  2024.  
  2025. {
  2026.  
  2027.   if (activate (me, 0))
  2028.  
  2029.     VertV=1000;
  2030.  
  2031.   moveby (0, VertV, 0, me);
  2032.  
  2033.   VertV+=Grav;
  2034.  
  2035.   zdrive (me)=mag;
  2036.  
  2037.   if (!vis? (#22))
  2038.  
  2039.     ypos (#22)=ypos (me);
  2040.  
  2041. }
  2042.  
  2043. if (objon (me)>0 && Phase==0)
  2044.  
  2045. {
  2046.  
  2047.   zdrive (me)=0;
  2048.  
  2049. /*  ypos (me)=base; */
  2050.  
  2051.   Phase=1;
  2052.  
  2053.   SqoshVel=10*VertV/Squash;
  2054.  
  2055.    
  2056.  
  2057.       /*  -print- (VertV);
  2058.  
  2059. *//* Squash Phase */
  2060.  
  2061.   if (!attr? (object (objon (me)), 22))
  2062.  
  2063.   {
  2064.  
  2065.     vis (#22);
  2066.  
  2067.     unkill (#22);
  2068.  
  2069.   }
  2070.  
  2071.   sound (6, 65, -7000, 0);
  2072.  
  2073. }
  2074.  
  2075. if (Phase==1)
  2076.  
  2077. {
  2078.  
  2079.   write (&ysize (#3))+=SqoshVel;
  2080.  
  2081.   ypos (#22)=ypos (me);
  2082.  
  2083.   if (ysize (#3)<10)
  2084.  
  2085.     ysize (#3)=10;
  2086.  
  2087.   if (ysize (#3)>Height)
  2088.  
  2089.   {
  2090.  
  2091.     write (&ysize (#3))=Height;
  2092.  
  2093.     Phase=0;
  2094.  
  2095.     VertV=- (VertV*CoRes)/100;
  2096.  
  2097.  
  2098.  
  2099. /*
  2100.  
  2101.  
  2102.  
  2103.         Process Joystick
  2104.  
  2105.  
  2106.  
  2107. */
  2108.  
  2109.   
  2110.  
  2111.  
  2112.  
  2113.     yrot (#4)=fatan2 (counter (11), counter (10));
  2114.  
  2115.     zdrive (me)=sqrt (counter (11)*counter (11)+counter 
  2116.  
  2117.         (10)*counter (10))/5;
  2118.  
  2119.     mag=zdrive (me);
  2120.  
  2121.     if (counter (12)==1 || counter (13))
  2122.  
  2123.     {
  2124.  
  2125.       if (VertV<1200)
  2126.  
  2127.         VertV+=200;
  2128.  
  2129.     }
  2130.  
  2131.     counter (12)=0;
  2132.  
  2133.     counter (13)=0;
  2134.  
  2135.     sound (6, 70, -10000, 0);
  2136.  
  2137.   }
  2138.  
  2139.   SqoshVel+=AntiSqsh;
  2140.  
  2141. }
  2142.  
  2143. xrot (#9)=limit (- (VertV*zdrive (me))/8000, -60, 60);
  2144.  
  2145. yrot (#10)=-yrot (#4)+fatan2 (counter (11), counter (10));
  2146.  
  2147. R=yrot (#10);
  2148.  
  2149. counter (10)=0;
  2150.  
  2151. counter (11)=0;
  2152.  
  2153.  
  2154. end
  2155. End_Chunk
  2156.  
  2157. Children:
  2158. ;
  2159. ;-------Object    4-------------------------------------------------------
  2160. Chunk: Standard
  2161.  Name:     "Dir"
  2162.  Number:   4
  2163.  Size:     1000 4000 1000
  2164.  Position: 200 0 200
  2165.  Type:     65535
  2166.  Layer:    0
  2167.  DFlags:   r
  2168. End_Chunk
  2169. Chunk: Rotations
  2170.  Initial: 0x0000 0x0000 0x0000
  2171.  Centre:  500 2000 500
  2172. End_Chunk
  2173.  
  2174. Children:
  2175. ;
  2176. ;-------Object    9-------------------------------------------------------
  2177. Chunk: Standard
  2178.  Name:     "Sostilt"
  2179.  Number:   9
  2180.  Size:     1000 4000 1000
  2181.  Position: 0 0 0
  2182.  Type:     65535
  2183.  Layer:    0
  2184.  DFlags:   r
  2185. End_Chunk
  2186. Chunk: Rotations
  2187.  Initial: 0x0000 0x0000 0x0000
  2188.  Centre:  500 0 500
  2189. End_Chunk
  2190.  
  2191. Children:
  2192. ;
  2193. ;-------Object   10-------------------------------------------------------
  2194. Chunk: Standard
  2195.  Name:     "SosParts"
  2196.  Number:   10
  2197.  Size:     1000 4000 1000
  2198.  Position: 0 0 0
  2199.  Type:     65535
  2200.  Layer:    0
  2201.  DFlags:   r
  2202. End_Chunk
  2203. Chunk: Rotations
  2204.  Initial: 0x0000 0x0000 0x0000
  2205.  Centre:  500 0 500
  2206. End_Chunk
  2207.  
  2208. Children:
  2209. ;
  2210. ;-------Object   11-------------------------------------------------------
  2211. Chunk: Standard
  2212.  Name:     "eye"
  2213.  Number:   11
  2214.  Size:     500 500 0
  2215.  Position: -100 2807 1000
  2216.  Type:     9
  2217.  Layer:    0
  2218.  DFlags:   r
  2219.  OFlags:   Aa
  2220. End_Chunk
  2221. Chunk: Animations
  2222.  Number: 1
  2223.  Subchunk
  2224.   First:    1
  2225.   Last:     2
  2226.   Phase:    0x0100
  2227.   Velocity: 0x0100
  2228.   Mode:     0
  2229. End_Chunk
  2230. Chunk: Rotations
  2231.  Initial: 0x0000 0x0000 0x0000
  2232.  Centre:  250 250 0
  2233. End_Chunk
  2234. Chunk: SCL
  2235. long   x, y, z;
  2236.  
  2237.  
  2238.  
  2239. resume (2, 2);
  2240.  
  2241. y=angle3d (#15, me, &x);
  2242.  
  2243. xrot (me)=x;
  2244.  
  2245. xrot (#12)=x;
  2246.  
  2247. yrot (me)=y;
  2248.  
  2249. yrot (#12)=y;
  2250.  
  2251. if (!random (40))
  2252.  
  2253. {
  2254.  
  2255.   ccel (me, 1)=2;
  2256.  
  2257.   ccel (#12, 1)=2;
  2258.  
  2259.   waitfs (3);
  2260.  
  2261.   ccel (me, 1)=1;
  2262.  
  2263.   ccel (#12, 1)=1;
  2264.  
  2265. }
  2266. end
  2267. End_Chunk
  2268. ;
  2269. ;-------Object   12-------------------------------------------------------
  2270. Chunk: Standard
  2271.  Name:     "L_Eye"
  2272.  Number:   12
  2273.  Size:     500 500 0
  2274.  Position: 600 2807 1000
  2275.  Type:     9
  2276.  Layer:    0
  2277.  DFlags:   r
  2278.  OFlags:   Aa
  2279. End_Chunk
  2280. Chunk: Animations
  2281.  Number: 1
  2282.  Subchunk
  2283.   First:    1
  2284.   Last:     2
  2285.   Phase:    0x0100
  2286.   Velocity: 0x0100
  2287.   Mode:     0
  2288. End_Chunk
  2289. Chunk: Rotations
  2290.  Initial: 0x0000 0x0000 0x0000
  2291.  Centre:  250 250 0
  2292. End_Chunk
  2293. ;
  2294. ;-------Object    3-------------------------------------------------------
  2295. Chunk: Standard
  2296.  Name:     "Squidge"
  2297.  Number:   3
  2298.  Size:     1000 4000 1000
  2299.  Position: 0 0 0
  2300.  Type:     3
  2301.  Layer:    0
  2302.  DFlags:   r
  2303. End_Chunk
  2304. Chunk: Attachments
  2305.  Number: 2
  2306.   Facet: 54   Object: 11
  2307.   Facet: 55   Object: 12
  2308. End_Chunk
  2309. Chunk: InitPos
  2310.  Position: 0 0 0
  2311. End_Chunk
  2312. Chunk: LitCols
  2313.  Number: 57
  2314.  0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3
  2315.  0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3
  2316.  0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3
  2317.  0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3 0xE3
  2318. End_Chunk
  2319. Chunk: SCL
  2320. long   f;
  2321.  
  2322.  
  2323.  
  2324. f=iysize (me)-ysize (me);
  2325.  
  2326. write (&xpos (me))=-f/4;
  2327.  
  2328. write (&zpos (me))=-f/4;
  2329.  
  2330. xsize (me)=ixsize (me)+f/2;
  2331.  
  2332. zsize (me)=izsize (me)+f/2;
  2333.  
  2334.  
  2335. end
  2336. End_Chunk
  2337. Chunk: Rotations
  2338.  Initial: 0x0000 0x0000 0x0000
  2339.  Centre:  500 0 500
  2340. End_Chunk
  2341. Chunk: InitSize
  2342.  Size: 1000 4000 1000
  2343. End_Chunk
  2344.  
  2345. End_Children
  2346.  
  2347. End_Children
  2348.  
  2349. End_Children
  2350.  
  2351. End_Children
  2352. ;
  2353. ;-------Object   14-------------------------------------------------------
  2354. Chunk: Standard
  2355.  Name:     "mover"
  2356.  Number:   14
  2357.  Size:     1400 0 1400
  2358.  Position: 2000602 2001 2007146
  2359.  Type:     65535
  2360.  Layer:    0
  2361.  DFlags:   ME
  2362. End_Chunk
  2363. Chunk: Colours
  2364.  Number: 18
  2365.  0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E
  2366.  0x0E 0x0E
  2367. End_Chunk
  2368. Chunk: Collision
  2369.  Number: 1
  2370.  SubChunk
  2371.   Offset: 699 0 699
  2372.   Size:   2 0 2
  2373. End_Chunk
  2374. Chunk: Dynamics
  2375.  MovType:     0x80000411
  2376.  Fuel:        0
  2377.  Climb:       0
  2378.  Gravity:     0
  2379.  Coupled:     0
  2380.  Drive:       0 0 0
  2381.  External:    0 0 0
  2382.  MaxForce:    0 0 0
  2383.  GroundFric:  0 0 0
  2384.  Restitution: 0 0 0
  2385.  Velocity:    0 0 0
  2386.  MaxVel:      0 0 0
  2387. End_Chunk
  2388. Chunk: InitPos
  2389.  Position: 2000602 2001 2007146
  2390. End_Chunk
  2391. Chunk: SCL
  2392. long   x, y, z, d=200;
  2393.  
  2394.  
  2395.  
  2396. y=ypos (#22)+2000-ypos (me);
  2397.  
  2398. x=xpos (#22)-xpos (me);
  2399.  
  2400. z=zpos (#22)-zpos (me);
  2401.  
  2402. xpos (me)+=x/5;
  2403.  
  2404. zpos (me)+=z/5;
  2405.  
  2406. if (abs (y)>d*2)
  2407.  
  2408.   ypos (me)+=d*sgn (y);
  2409.  
  2410.  
  2411. end
  2412. End_Chunk
  2413. ;
  2414. ;-------Object   22-------------------------------------------------------
  2415. Chunk: Standard
  2416.  Name:     "shad"
  2417.  Number:   22
  2418.  Size:     1320 0 1320
  2419.  Position: 1995690 2 2002454
  2420.  Type:     15
  2421.  Layer:    0
  2422.  DFlags:   NcM
  2423. End_Chunk
  2424. Chunk: InitPos
  2425.  Position: 1995690 2 2002454
  2426. End_Chunk
  2427. Chunk: Colours
  2428.  Number: 2
  2429.  0xE1 0xE0
  2430. End_Chunk
  2431. Chunk: SCL
  2432. short  s, o, x, ors=1400, ballsz=1400;
  2433.  
  2434.  
  2435.  
  2436. resume (2, 2);
  2437.  
  2438. /*
  2439.  
  2440. __________________________________________________________________________
  2441.  
  2442.  
  2443.  
  2444.                     VARIABLES
  2445.  
  2446.  
  2447.  
  2448.                 s   -   calculated size of shadow
  2449.  
  2450.                 o   -   calculated position offset
  2451.  
  2452.                 x   -   calculated position offset modifier
  2453.  
  2454.               ors   -   original shadow object size - constant 
  2455.  
  2456.            ballsz   -   size of ball - constant
  2457.  
  2458.  
  2459.  
  2460. __________________________________________________________________________
  2461.  
  2462.  
  2463.  
  2464.  
  2465.  
  2466.  
  2467.  
  2468.  
  2469.  
  2470. *//*
  2471.  
  2472.  
  2473.  
  2474.  
  2475.  
  2476.  
  2477.  
  2478. ##########################################################################
  2479.  
  2480.                     calculate size of shadow
  2481.  
  2482. ##########################################################################
  2483.  
  2484. */                    
  2485.  
  2486. s=ors- (ypos (#2)-ypos (me))/5;
  2487.  
  2488. /*
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494. ##########################################################################
  2495.  
  2496.                     maintain shadow size so that it is
  2497.  
  2498.                     never smaller than a fifth of it's 
  2499.  
  2500.                     original size.
  2501.  
  2502. ##########################################################################
  2503.  
  2504. */
  2505.  
  2506.  
  2507.  
  2508. if (s<ors/5)
  2509.  
  2510.   s=ors/5;
  2511.  
  2512. /*
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520. ##########################################################################
  2521.  
  2522.                     write shadow size
  2523.  
  2524. ##########################################################################
  2525.  
  2526. */
  2527.  
  2528.  
  2529.  
  2530. write (&xsize (me))=s;
  2531.  
  2532. write (&zsize (me))=s;
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538. /*
  2539.  
  2540.  
  2541.  
  2542.  
  2543.  
  2544.  
  2545.  
  2546. ##########################################################################
  2547.  
  2548.                     work out original horizontal
  2549.  
  2550.                     position offset for unsized
  2551.  
  2552.                     shadow (o) & size modification
  2553.  
  2554.                     offset (x).
  2555.  
  2556. ##########################################################################
  2557.  
  2558. */ 
  2559.  
  2560. o= (ors-ballsz)/2;
  2561.  
  2562. x= (ors-s)/2;
  2563.  
  2564. /*
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570. ##########################################################################
  2571.  
  2572.                     set position of shadow with offsets
  2573.  
  2574.                     applied
  2575.  
  2576. ##########################################################################
  2577.  
  2578. */
  2579.  
  2580. xpos (me)=xpos (#2)-o+x;
  2581.  
  2582. zpos (me)=zpos (#2)-o+x;
  2583.  
  2584. if (attr? (object (objon (me)), 22))
  2585.  
  2586. {
  2587.  
  2588.   invis (me);
  2589.  
  2590.   kill (me);
  2591.  
  2592. }
  2593. end
  2594. End_Chunk
  2595. Chunk: Dynamics
  2596.  MovType:     0x80000401
  2597.  Fuel:        0
  2598.  Climb:       0
  2599.  Gravity:     10000
  2600.  Coupled:     0
  2601.  Drive:       0 0 0
  2602.  External:    0 0 0
  2603.  MaxForce:    0 0 0
  2604.  GroundFric:  0 0 0
  2605.  Restitution: 0 0 0
  2606.  Velocity:    0 0 0
  2607.  MaxVel:      0 0 0
  2608. End_Chunk
  2609. ;
  2610. ;-------Object   15-------------------------------------------------------
  2611. Chunk: Standard
  2612.  Name:     "Camera"
  2613.  Number:   15
  2614.  Size:     1000 1000 1000
  2615.  Position: 1999700 9729 1984100
  2616.  Type:     65535
  2617.  Layer:    0
  2618.  DFlags:   rME
  2619. End_Chunk
  2620. Chunk: Rotations
  2621.  Initial: 0x0000 0x0000 0x0000
  2622.  Centre:  500 500 500
  2623. End_Chunk
  2624. Chunk: Colours
  2625.  Number: 18
  2626.  0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C
  2627.  0x0C 0x0C
  2628. End_Chunk
  2629. Chunk: InitPos
  2630.  Position: 1999700 9729 1984100
  2631. End_Chunk
  2632. Chunk: SCL
  2633. fixed  x, y, z;
  2634.  
  2635.  
  2636.  
  2637. ypos (me)=ypos (#13)+8200;
  2638.  
  2639. xpos (me)=xpos (#13)-300;
  2640.  
  2641. zpos (me)=zpos (#13)-21057;
  2642.  
  2643. y=angle3d (#14, me, &x);
  2644.  
  2645. xrot (me)=x;
  2646.  
  2647. yrot (me)=y;
  2648.  
  2649.  
  2650. end
  2651. End_Chunk
  2652. Chunk: Dynamics
  2653.  MovType:     0x80000411
  2654.  Fuel:        0
  2655.  Climb:       0
  2656.  Gravity:     0
  2657.  Coupled:     0
  2658.  Drive:       0 0 0
  2659.  External:    0 0 0
  2660.  MaxForce:    0 0 0
  2661.  GroundFric:  0 0 0
  2662.  Restitution: 0 0 0
  2663.  Velocity:    0 0 0
  2664.  MaxVel:      0 0 0
  2665. End_Chunk
  2666. ;
  2667. ;-------Object   13-------------------------------------------------------
  2668. Chunk: Standard
  2669.  Name:     "autocam"
  2670.  Number:   13
  2671.  Size:     1000 1000 1000
  2672.  Position: 1959495 100000 2410705
  2673.  Type:     65535
  2674.  Layer:    0
  2675.  DFlags:   ME
  2676. End_Chunk
  2677. Chunk: Colours
  2678.  Number: 18
  2679.  0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C
  2680.  0x0C 0x0C
  2681. End_Chunk
  2682. Chunk: InitPos
  2683.  Position: 1959495 100000 2410705
  2684. End_Chunk
  2685. Chunk: SCL
  2686. long   x, y, z, min=2000;
  2687.  
  2688.  
  2689.  
  2690. y=ypos (#22)+2000-ypos (me);
  2691.  
  2692. x=xpos (#22)-xpos (me);
  2693.  
  2694. z=zpos (#22)-zpos (me);
  2695.  
  2696. if (abs (x)>min)
  2697.  
  2698.   xpos (me)+=x/20;
  2699.  
  2700. if (abs (z)>min)
  2701.  
  2702.   zpos (me)+=z/20;
  2703.  
  2704. if (abs (y)>min)
  2705.  
  2706.   ypos (me)+=y/20;
  2707.  
  2708.  
  2709. end
  2710. End_Chunk
  2711. Chunk: Dynamics
  2712.  MovType:     0x80000411
  2713.  Fuel:        0
  2714.  Climb:       0
  2715.  Gravity:     0
  2716.  Coupled:     0
  2717.  Drive:       0 0 0
  2718.  External:    0 0 0
  2719.  MaxForce:    0 0 0
  2720.  GroundFric:  0 0 0
  2721.  Restitution: 0 0 0
  2722.  Velocity:    0 0 0
  2723.  MaxVel:      0 0 0
  2724. End_Chunk
  2725. End_File